package net.googlecode.garzha.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: Valera
 * Date: 3/25/11
 * Time: 8:33 PM
 */
public class Manager extends Person {


    /**
     * Constructor manager
     */

    public Manager(final String firstName, final String lastName, final int age,
                   final BigDecimal rate, final boolean perHour, final BigDecimal bonusAmt) {
        super(firstName, lastName, age, rate, bonusAmt);
        this.perHour = perHour;
    }


    /**
     * Override method for comfortable output.
     *
     * @return Comfortable presentation of object of the class.
     */
    public String toString() {
        return "Manager >> " + getLastName() + " " + getFirstName()
                + ",age:" + getAge();
    }
}
